import request from '@/utils/request'

// 查询保险合同实际回款列表
export function listReal(query) {
  return request({
    url: '/insurance/real/list',
    method: 'get',
    params: query
  })
}

// 查询保险合同实际回款详细
export function getReal(id) {
  return request({
    url: '/insurance/real/' + id,
    method: 'get'
  })
}

// 新增保险合同实际回款
export function addReal(data) {
  return request({
    url: '/insurance/real',
    method: 'post',
    data: data
  })
}

// 修改保险合同实际回款
export function updateReal(data) {
  return request({
    url: '/insurance/real',
    method: 'put',
    data: data
  })
}

// 删除保险合同实际回款
export function delReal(id) {
  return request({
    url: '/insurance/real/' + id,
    method: 'delete'
  })
}
